package com.fsoft.finaltest.dao;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

import com.fsoft.finaltest.dto.Animal;

public class AnimalMapper implements RowMapper<Animal>{
	
	public Animal mapRow(ResultSet rs, int rowNum) throws SQLException {
	      Animal animal = new Animal();
	      animal.set_animalID(rs.getInt("AnimalID"));
	      animal.set_animalName(rs.getString("AnimalName"));
	      animal.set_state(rs.getBoolean("State"));
	      return animal;
	   }
}
